﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public  abstract class BasePlayerControl : MonoBehaviour {
	#region 控制键位及其作用
	[Header("键位及其作用")]
	public KeyCode[] ControlKeys;
	public string[]  KeysEffects;
	protected Dictionary<string,KeyCode> ControlKeyCode=new Dictionary<string, KeyCode>();
	#endregion
	[Header("玩家相关数值")]
	[Tooltip("玩家行进速度")]
	[SerializeField]
	protected float _speed;
	[Tooltip("玩家奔跑速度")]
	[SerializeField]
	protected float _runSpeed;
	[Tooltip("玩家跳跃速度")]
	[SerializeField]
	protected float jumpSpeed;


	#region 玩家类基本的控制函数
	protected virtual void Attack(){}

	protected virtual void Jump(){}
	protected virtual void Walk(){}
	protected virtual void Run(){}

	#endregion

}
